!!!Hello World!!!
#include <CppUTest/CommandLineTestRunner.h> int main(int argc, char **argv) { return CommandLineTestRunner::RunAllTests(argc, argv); }
OK (0 tests, 0 ran, 0 checks, 0 ignored, 0 filtered out, 0 ms)
#include <CppUTest/CommandLineTestRunner.h> int main() { const char* args[] = { "", "-v" }; return CommandLineTestRunner::RunAllTests(2, args); }
#include <boost/date_time/gregorian/gregorian.hpp> #include <CppUTest/TestHarness.h> TEST_GROUP(Dates) { }; TEST(Dates, CanBeLinkedIn) { using namespace boost::gregorian; std::string s("2001-10-9"); date d(from_simple_string(s)); }
You need to enable Javascript in your browser to edit pages.
help on how to format text
Overview
Now that you've successfully build boot, it is finally time to use it in a project.Overview of the Steps
Setting up Initial Project
Configuring the Project for CppUTest
Include Directories
CppUTest Library
Library Path
Update main
You won't notice any changes unless you use CppUTest.Alternative main()
If you'd like to see a list of tests and the time each takes to run, you can either:<--Back
Configuring the Project to use Boost
<--Back
<--Back